package com.haiyou.dc.netty.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.*;
import java.io.Serializable;

import java.util.Date;

/**
 * 我的好友
 *
 * @author Administrator
 * @date 2020-03-04 16:05:16
 */
@ApiModel(value = "我的好友")
@Data
@Accessors(chain = true)
@Table(name = "im_my_friend")
public class ImMyFriend implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 自动编号
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @ApiModelProperty(value = "自动编号", name = "id")
    private Integer id;

    /**
     * 我的id
     */
    @Column(name = "my_id")
    @ApiModelProperty(value = "我的id", name = "myId")
    private String myId;

    /**
     * 朋友id
     */
    @Column(name = "friend_id")
    @ApiModelProperty(value = "朋友id", name = "friendId")
    private String friendId;

    /**
     * 申请时间
     */
    @Column(name = "apply_time")
    @ApiModelProperty(value = "申请时间", name = "applyTime")
    private Date applyTime;

}
